﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeTracker.BusinessObjects.TimeSheet.ComponentParts 
{
    public class WorkDay
    {
        #region Properties

        private DateTime _date;
        public DateTime Date
        {
            get { return _date; }
        }

        private IDictionary<int, Activity> _activities;
        public IDictionary<int, Activity> Activities
        {
            get { return _activities; }
        }

        #endregion

        #region Constructors

        internal WorkDay(DateTime Date)
        {
            _date = Date;
            _activities = new Dictionary<int, Activity>();
        }

        #endregion

        #region Methods

        public void AddActivity(Activity NewActivity)
        {
            _activities.Add(NewActivity.ActivityID, NewActivity);
        }

        #endregion
    }
}
